package com.misboot.document.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @MethodName
 * @Description  文件dto
 * @Param null
 * @Return
 * @Author 湖南佐佑时代科技有限公司<service@zuoyo.com>
 * @Date 2019-10-20 13:16
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FileDTO {


     	/*
	id:  "132aa30a87064",                 //文件id,字符串长度小于40
    name : "example.doc",                //文件名
    version: 1,                        //当前版本号，位数小于11
    size: 200,                        //文件大小，单位为kb
    creator: "id0",                        //创建者id，字符串长度小于40
    create_time: 1136185445,            //创建时间，时间戳，单位为秒
    modifier: "id1000",                    //修改者id，字符串长度小于40
    modify_time: 1551409818,            //修改时间，时间戳，单位为秒
    download_url: "http://www.xxx.cn/v1/file?fid=f132aa30a87064",  //文档下载地址
    */

    public FileDTO() {
        super();
    }

    public FileDTO(String id, String name, int version, int size, String creator,
                   long create_time, String modifier, long modify_time, String download_url, UserAclBO user_acl, WatermarkBO watermark) {
        this.id = id;
        this.name = name;
        this.version = version;
        this.size = size;
        this.creator = creator;
        this.create_time = create_time;
        this.modifier = modifier;
        this.modify_time = modify_time;
        this.download_url = download_url;
        this.user_acl = user_acl;
        this.watermark = watermark;
    }



    private String id;
    private String name;
    private int version;
    private int size;
    private String creator;
    private long create_time;
    private String modifier;
    private long modify_time;
    private String download_url;

    private UserAclBO user_acl;
    private WatermarkBO watermark;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public long getModify_time() {
        return modify_time;
    }

    public void setModify_time(long modify_time) {
        this.modify_time = modify_time;
    }

    public String getDownload_url() {
        return download_url;
    }

    public void setDownload_url(String download_url) {
        this.download_url = download_url;
    }

    public UserAclBO getUser_acl() {
        return user_acl;
    }

    public void setUser_acl(UserAclBO user_acl) {
        this.user_acl = user_acl;
    }

    public WatermarkBO getWatermark() {
        return watermark;
    }

    public void setWatermark(WatermarkBO watermark) {
        this.watermark = watermark;
    }

    @Override
    public String toString() {
        return "FileDTO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", version=" + version +
                ", size=" + size +
                ", creator='" + creator + '\'' +
                ", modifier='" + modifier + '\'' +
                ", create_time=" + create_time +
                ", modify_time=" + modify_time +
                ", download_url='" + download_url + '\'' +
                ", user_acl=" + user_acl +
                ", watermark=" + watermark +
                '}';
    }
}

